<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript">
    let obj = {a: {b: {c: 1}}}
    let obj2 = {a: {b: 1}}

    console.log(obj.a.b.c)

    const {a: {b: {c}}} = obj
    console.log(c)

    const {a: {b: data}} = obj2
    console.log(data)
</script>
</body>
</html>